<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <!-- 基本样式 -->
    <link rel="stylesheet" href="../src/mixins/style/normalize.css" />
    <link rel="stylesheet" href="../src/com_third/font-awesome/css/font-awesome.css">
    <link rel="stylesheet" href="../src/mixins/style/base.css" />

    <!-- 当时项目公共样式 -->
    <link rel="stylesheet" href="src/common.css" />

    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="../src/lib/bootstrap.min.css" />

    <style>
        html,
        body {
            margin: 0 auto;
            padding: 0;
            overflow: hidden;
        }

        .body-inner {
            background-color: #eee;
        }
    </style>
</head>

<body>

    <div v-cloak class="clearfix" id="app">


        <el-table :data="tableList"  stripe border highlight-current-row style="width: 100%">
            <el-table-column prop="id" label="标识" width="60">
            </el-table-column>
            <el-table-column prop="name" label="名称">
            </el-table-column>
            <el-table-column prop="pId" label="父标识">
            </el-table-column>
            <el-table-column prop="level" label="层级">
            </el-table-column>
            <el-table-column prop="dataFlag" label="是否有效" width="80">
                <template slot-scope="scope">
                    <el-tag size="medium" :type="scope.row.dataFlag === 1 ? 'primary' : 'success'" disable-transitions>{{scope.row.dataFlag==1?"有效":"无效"}}</el-tag>
                </template>
            </el-table-column>
            <el-table-column label="操作" width="180">
                <template slot-scope="scope">
                    <el-button size="mini" @click="handleEdit(scope.$index, scope.row)">编辑</el-button>
                    <el-button size="mini" type="danger" @click="handleDelete(scope.$index, scope.row)">删除</el-button>
                </template>
            </el-table-column>
        </el-table>


    </div>

    <script src="../src/lib/jquery.js"></script>
    <script src="../src/lib/sea-all.js"></script>
    <script src="../src/lib/vue.js"></script>
    <script src="../src/lib/vue-router.js"></script>
    <script src="../boot.js"></script>


    <link href="https://cdn.bootcss.com/layer/3.1.0/theme/default/layer.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/layer/3.1.0/layer.js"></script>

    <script>
        $(function () {
            seajs.use('./06_categoryList.js');
        })
    </script>



</body>

</html>